import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "amfe-flexible"; // 导入适配rem
import './VueComponents.js'
import directiveObj from '@/utils/directive'

// Vue.use 就是执行目标对象的 install 方法，并传入Vue类
Vue.use(directiveObj);

// console.log(process);
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app")
if (process.env.NODE_ENV !== 'development') {
  console.log = function() {}
  console.error = function() {}
}